238f0a8cf38035cdbf562677eee35d6b8c2bde4c,src/test/java/alexh/DynamicListTest.java,DynamicListTest,children,#,52

Before Change


    @Test
    public void children() {
        List<Dynamic> children = dy.children().collect(toList());
        assertThat(children.toString(), children.get(1).asObject(), is("hello"));
        assertThat(children.toString(), children.get(3).asObject(), is(asList(1, 2, 3)));
    }

After Change


    @Test
    public void children() {
        List<Dynamic> children = dy.children().collect(toList());
        Assertions.assertThat(children.get(1).asObject())
            .as(children.toString())
            .isEqualTo("hello");
        Assertions.assertThat(children.get(3).asObject())
            .as(children.toString())
            .isEqualTo(asList(1, 2, 3, null));